package com.exam.api.modules.system.dto;

import com.exam.api.modules.system.domain.TblDept;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 部门更新DTO
 *
 * @author bcheng
 */
@Schema(description = "部门更新DTO")
@EqualsAndHashCode(callSuper = true)
@Data
public class DeptUpdateDTO extends DeptAddDTO {

    /**
     * 部门id
     */
    @Schema(description = "部门id")
    @NotNull
    private Long deptId;


    @Override
    public TblDept converter() {
        TblDept converter = super.converter();
        converter.setDeptId(deptId);
        return converter;
    }
}
